#include "rclcpp/rclcpp.hpp"

namespace create_node_cls
{
    class create_node_class : public rclcpp::Node    /*必须继承public*/
    {
    private:
        /* data */
    public:
        create_node_class(std::string name);
        ~create_node_class();
    };
    
    create_node_class::create_node_class(std::string name) : Node(name)   /*必须继承node*/
    {
        RCLCPP_INFO(this->get_logger(),"create_node_cls successed.");
    }
    
    create_node_class::~create_node_class()
    {
    }
    
} // namespace create_node_cls


int main(int argc, char **argv)
{
    rclcpp::init(argc,argv);
    auto node = std::make_shared<create_node_cls::create_node_class>("node_class");   /*必须提供节点名称*/
    rclcpp::spin(node);
    rclcpp::shutdown();
    return 0;
}
